﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace IPShow
{
    public partial class ShowIP : Form
    {
        public ShowIP()
        {
            InitializeComponent();

        }

        private void ShowIP_Load(object sender, EventArgs e)
        {
            label1.Text = Dns.GetHostByName(Dns.GetHostName()).AddressList[0].ToString();            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Clipboard.SetText(label1.Text);
        }

    }
}
